package com.cheer.dto;

import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@Accessors(chain = true)
public class OrganizationUpdateDTO {

    @NotNull(message = "机构Id不能为空")
    private Long orgId;

    @NotBlank(message = "机构名称不能为空")
    @Length(max = 50, message = "机构名称不能超过50个字符")
    private String orgName;

}
